package java_objects.method_arguments;

public class SwapPrimitive {

	int x = 10;
	int y = 20;
	void swap(int a, int b) {
		int temp;
		temp = a;
		a = b;
		b = temp;
	}
	void swapTest() {
		swap(x, y);
		System.out.printf("x = %d, y = %d\n", x, y);
	}

	public static void main(String[] args) {
		new SwapPrimitive().swapTest();
	}
}
